export default {
  changeCity (state, city) {
    /*mutations方法来改变state的状态,让改变的city赋给了状态的state*/
    state.city = city;
    try {
      localStorage.city = city
    } catch (e) {

    }
  }
}
